Remove use of focus-{in,out}-hook
authorJustin Burkett <justin@burkett.cc>
Wed, 2 Sep 2020 01:35:43 +0000 (21:35 -0400)
committerJustin Burkett <justin@burkett.cc>
Wed, 2 Sep 2020 01:35:43 +0000 (21:35 -0400)
Fix #259 #260 #262

which-key.el

index 6eb8e35995904dee0f7502253e333eafcf370853..c08cfd8af643d91d13118b1a8f736a9be104a8c6 100644 (file)
@@ -815,8 +815,6 @@ problems at github. If DISABLE is non-nil disable support."
         (when which-key-show-remaining-keys
           (add-hook 'pre-command-hook #'which-key--lighter-restore))
         (add-hook 'pre-command-hook #'which-key--hide-popup)
-        (add-hook 'focus-out-hook #'which-key--stop-timer)
-        (add-hook 'focus-in-hook #'which-key--start-timer)
         (add-hook 'window-size-change-functions
                   'which-key--hide-popup-on-frame-size-change)
         (which-key--start-timer))
@@ -826,8 +824,6 @@ problems at github. If DISABLE is non-nil disable support."
     (when which-key-show-remaining-keys
       (remove-hook 'pre-command-hook #'which-key--lighter-restore))
     (remove-hook 'pre-command-hook #'which-key--hide-popup)
-    (remove-hook 'focus-out-hook #'which-key--stop-timer)
-    (remove-hook 'focus-in-hook #'which-key--start-timer)
     (remove-hook 'window-size-change-functions
                  'which-key--hide-popup-on-frame-size-change)
     (which-key--stop-timer)))